#pragma once
#include<iostream>
#include<list>
using namespace std;

class student
{
protected:
	string manage_homework;
public:
	student() {}
	virtual string get_content() = 0;
	virtual void update_content() = 0;
};

class teacher
{
private:
	list<student*> observers;
protected:
	string manage_homework;
public:
	virtual void set_content(string content) = 0;
	virtual string get_content() = 0;
	void add_stu(student* stu);
	void delete_stu(student* stu);
	void notify_stu();
	virtual string get_name() = 0;
};
